package com.service.impl;

import java.io.Serializable;
import java.util.List;

import com.dao.TicketDao;
import com.enetiy.Ticket;
import com.enetiy.Ticketuser;
import com.service.TicketService;
import com.util.PagingUilt;

public class TicketServiceImpl implements TicketService {
	private TicketDao ticketDao;
	@Override
	public Serializable insertTickeUser(Ticketuser ticketuser) throws Exception {
		return ticketDao.insertTickeUser(ticketuser);
	}

	@Override
	public void updateTickeUser(Ticketuser ticketuser) throws Exception {
		ticketDao.updateTickeUser(ticketuser);
	}

	@Override
	public Ticketuser selectTicketuser(int id)
			throws Exception {
		return ticketDao.selectTicketuser(id);
	}
	
	public void setTicketDao(TicketDao ticketDao) {
		this.ticketDao = ticketDao;
	}

	@Override
	public List<Ticket> selectTicketList() throws Exception {
		return ticketDao.selectTicketList();
	}
	@Override
	public List<Ticketuser> selectTicketuserList(int userid) throws Exception {
		return ticketDao.selectTicketuserList(userid);
	}

	@Override
	public List<Ticketuser> selectTicketuserList(int userid, String iden )
			throws Exception {
		return ticketDao.selectTicketuserList(userid,iden);
	}

	@Override
	public Ticket selectTicket(String iden) throws Exception {
		return ticketDao.selectTicket(iden);
	}

	@Override
	public void selectTicketuserPU(PagingUilt<Ticketuser> pu,int userid) throws Exception {
		this.ticketDao.selectTicketuserPU(pu,userid);
	}

	@Override
	public List<Ticketuser> selectTicketuserList(int userid, int isGet)
			throws Exception {
		return this.ticketDao.selectTicketuserList(userid, isGet);
	}
	
}
